package com.mornd.gulimall.apis.coupon.fallback;

import com.mornd.gulimall.apis.coupon.ICouponClient;
import com.mornd.gulimall.apis.coupon.to.SeckillSessionTo;
import com.mornd.gulimall.apis.coupon.to.SkuReductionTo;
import com.mornd.gulimall.common.core.base.BaseFallback;
import com.mornd.gulimall.apis.coupon.to.BoundsTo;
import com.mornd.gulimall.common.core.result.AjaxResult;
import com.mornd.gulimall.common.core.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/7/23 - 10:59
 */

@Slf4j
@Component
public class ICouponClientFallback extends BaseFallback implements ICouponClient {

    @Override
    public AjaxResult saveBounds(BoundsTo boundsTo) {
        return errorAjaxR();
    }

    @Override
    public AjaxResult saveSkuReductions(List<SkuReductionTo> skuReductionTo) {
        return errorAjaxR();
    }

    @Override
    public R<List<SeckillSessionTo>> latestDaysSeckillSessions(int day) {
        return error();
    }
}
